#!/bin/bash
#testing the read command

echo -n "enter sh commad " 
read commad

case ${commad} in 
	"start") 
cd 
sudo /usr/local/nginx/sbin/nginx
echo "nginx start ok....."
;;
	"stop")
cd 
sudo /usr/local/nginx/sbin/nginx -s stop
echo "nginx stop ok....."
;;
	"reload")
cd 
sudo /usr/local/nginx/sbin/nginx -s reload
echo "nginx reload ok....."
;;
	"status")
echo "nginx status ok....."
cd 
sudo /usr/local/nginx/sbin/nginx -t
;;
	"conf")
echo "gedit open"
cd 
cd /usr/local/nginx/conf/
sudo gedit nginx.conf
;;
esac 

	
